new Vue({
    el: '#app',
    mixins: [Save],//组件配置文件，路径/utils/components.js
    data() {
        return {
            dataForm:{},
            article_info:[],//产品
            land_info:[],//作物来源地
            production_line:[],//产线
        }
    },
    mounted() {
        /**
         * 组件配置文件中自动执行方法
         * 1.this.init(); //初始化文件
         * 2.this.getData(); //仅修改时执行，根据BOM配置属性查询
         */
        this.getList();
    },
    methods: {
        getList(){
            httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'article_info',
                    Condition: `Row_Status='0'`
                },
                type:'GET'
            }).then(data => {
               this.article_info = data;
            }).catch(xhr => {
                this.$message.error("系统错误，请联系开发者!")
            })

            httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'land_info',
                    Condition: `Row_Status='0'`
                },
                type:'GET'
            }).then(data => {
               this.land_info = data;
            }).catch(xhr => {
                this.$message.error("系统错误，请联系开发者!")
            })

            httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'production_line',
                    Condition: `Row_Status='0'`
                },
                type:'GET'
            }).then(data => {
               this.production_line = data;
            }).catch(xhr => {
                this.$message.error("系统错误，请联系开发者!")
            })

        
        }
    }
})